"""
用户模块 URL 配置
"""
from django.urls import path
from rest_framework_simplejwt.views import TokenRefreshView
from . import views
from . import creation_views

urlpatterns = [
    # 用户认证接口
    path('register', views.register, name='register'),
    path('login', views.login, name='login'),
    path('logout', views.logout, name='logout'),
    path('info', views.user_info, name='user_info'),
    path('update', views.update_profile, name='update_profile'),
    path('change-password', views.change_password, name='change_password'),
    
    # JWT Token 刷新
    path('token/refresh', TokenRefreshView.as_view(), name='token_refresh'),
    
    # AI 创作接口
    path('painting/generate', creation_views.generate_painting, name='generate_painting'),
    path('music/generate', creation_views.generate_music, name='generate_music'),
    path('writing/generate', creation_views.generate_writing, name='generate_writing'),
]
